package math;

import javax.vecmath.*;

public class Precision {

	public static final double ERROR_MARGIN = 0.00001;
	
	public static boolean compare(double a, double b) {
		return Math.abs(a-b) < ERROR_MARGIN;
	}
	
	public static boolean compare(Point3d a, Point3d b) {
		return a.epsilonEquals(b, ERROR_MARGIN);
	}
}
